#ifndef _POWER_H_
#define _POWER_H_

#include "STMFCT.h"

// GPIOA
#define NRF24L01_POWER GPIO_Pin_8

// GPIOB
#define MPU6050_POWER GPIO_Pin_5
#define OLED_POWER GPIO_Pin_14
#define UART3_POWER GPIO_Pin_15

// GPIOC
#define GRAY_POWER GPIO_Pin_13
#define UART2_POWER GPIO_Pin_14

typedef enum
{
    on = true,
    off = false
} power_state;

void POWER_turnAll(power_state);
// void POWER_turn(power_module, power_state)
void NRF24L01_turn(power_state);
void MPU6050_turn(power_state);
void OLED_turn(power_state);
void UART3_turn(power_state);
void GraySensor_turn(power_state);
void UART2_turn(power_state);

#endif
